<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "tme_prostatusinfo".
 *
 * @property integer $ProStatusID
 * @property string $ProStatusName
 * @property integer $Status
 * @property string $Remark
 *
 * @property TmeMerchandiseinfo[] $tmeMerchandiseinfos
 */
class TmeProstatusinfo extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'tme_prostatusinfo';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['ProStatusName'], 'required'],
            [['Status'], 'integer'],
            [['ProStatusName'], 'string', 'max' => 20],
            [['Remark'], 'string', 'max' => 50]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'ProStatusID' => 'Pro Status ID',
            'ProStatusName' => 'Pro Status Name',
            'Status' => 'Status',
            'Remark' => 'Remark',
        ];
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getTmeMerchandiseinfos()
    {
        return $this->hasMany(TmeMerchandiseinfo::className(), ['ProStatusID' => 'ProStatusID']);
    }
}
